package com.atguigu.educenter.service;

import com.atguigu.educenter.entity.UcenterMember;
import com.atguigu.educenter.entity.vo.Registervo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author zhaolie
 * @since 2020-12-18
 */
public interface UcenterMemberService extends IService<UcenterMember> {

    /**
     * 用户登录
     * @param member
     * @return
     */
    String login(UcenterMember member);

    /**
     * 注册用户
     * @param rvo
     */
    void register(Registervo rvo);

    /**
     * 根据id查询用户信息
     * @param menberId
     * @return
     */
    UcenterMember getUserInfo(String menberId);

    /**
     * 根据微信openid查询用户信息
     * @param openid
     * @return
     */
    UcenterMember getOpenIdMember(String openid);

    /**
     * 查询一天的注册人数
     * @param day
     * @return
     */
    Integer countRegister(@Param("day") String day);
}
